package xReseau;

import javax.xml.bind.annotation.XmlElement;

public class ConstraintViolated {

	private int ID = -1;
	String constraintType;
	String frenchMessage;

	@XmlElement(name = "ID")
	public void setID(int id) {
		this.ID = id;
	}

	public int getID() {
		return this.ID;
	}

	@XmlElement(name = "FrenchMessage")
	public void setFrenchMessage(final String frenchMessage) {
		this.frenchMessage = frenchMessage;
	}

	public String getFrenchMessage() {
		return this.frenchMessage;
	}

	@XmlElement(name = "ConstraintType")
	public void setConstraintType(final String typeName) {
		constraintType = typeName;
	}

	public String getConstraintType() {
		return constraintType;
	}

	@Override
	public String toString() {
		return constraintType;
	}

}
